package com.zhentao.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import lombok.Data;

/**
 * 虹软人脸识别SDK配置类
 */
@Configuration
@ConfigurationProperties(prefix = "face.engine")
@Data
public class FaceEngineConfig {

    /**
     * APP_ID
     */
    private String appId = "9yVSYD1R7f2emC7vUtLWqepNnYEs9x8mvfW8GeQ7vpxr";

    /**
     * SDK_KEY
     */
    private String sdkKey = "BNdCvfAsStZpLVQz41jCs1sxA646eoM4ZEJLBVRHKwuv";



    /**
     * SO库路径
     */
    private String libPath = "./arcsoft_lib";

    /**
     * 人脸检测模式：视频模式(ASF_DETECT_MODE_VIDEO) 图片模式(ASF_DETECT_MODE_IMAGE)
     */
    private int detectMode = 0x00000002; // 图片模式

    /**
     * 人脸检测角度：正脸0度角(ASF_OP_0_ONLY) 四方向(ASF_OP_0_HIGHER_EXT)
     */
    private int detectFaceOrientPriority = 0x5; // 四方向

    /**
     * 图片质量阈值
     */
    private float qualityThreshold = 0.5f;

    /**
     * 人脸特征相似度阈值
     */
    private float similarThreshold = 0.8f;

    /**
     * 最大人脸数量
     */
    private int maxFaceNum = 10;

    /**
     * 线程池大小
     */
    private int threadPoolSize = 5;
}
